package com.llamarun;

import android.media.MediaPlayer;
import android.os.AsyncTask;

public class BackGroundMusic extends AsyncTask<Void, Void, Void> {

	private LlamaRunActivity llamaAct;
	private Thread myThread;
    private boolean herp;
    MediaPlayer player;
	
    public BackGroundMusic(LlamaRunActivity llamaAct){
    	this.llamaAct = llamaAct;
    	herp=true;
    }
    
    @Override
    protected Void doInBackground(Void... params) {
    	player = MediaPlayer.create(llamaAct, R.raw.llamasong);
        player.setLooping(true); // Set looping 
        player.setVolume(100,100); 
        player.start(); 
        return null;
    }
    
    

}
